//1. 引入 react
import React from 'react';
//2. 引入 react-dom
import ReactDOM from 'react-dom';
//3. 引入组件
import App from './App';
import {BrowserRouter, HashRouter} from 'react-router-dom'
//4. 将虚拟 DOM 渲染到容器中  hash 指的是 url 中的锚点  <a href="/home#top">顶部</a>
ReactDOM.render(<BrowserRouter><App /></BrowserRouter>, document.querySelector("#root"));
